package com.example.JavaWebApi.service.systemService;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.JavaWebApi.model.entity.systemEntity.Menuinfo;

import java.util.List;

/**
*
* @ClassName: MenuinfoService
* @Description: TODO(这里用一句话描述这个类的作用)
* @author 杨泽
* @date 2022-06-15
*/
public interface IMenuinfoService  {
  List<Menuinfo> getMenuTree();
  IPage<Menuinfo> getLazyList(Integer parentId, int page, int limit);
  boolean create(Menuinfo menuinfo);
  boolean update(Menuinfo menuinfo);
  boolean delete(Integer id);
  List<Integer> getMenuByRoleId(Integer roleId);
  List<Menuinfo> getMenuByUserId(Integer userId);
 }